export const setID = function(curTest) {
    var idArr = new Object(); //存储试题信息层所在id的伪哈希表
    if (curTest === '' || curTest === undefined) {
        return;
    }
    var testType = curTest.testType; //试题类型
    var subTestType = curTest.subTestType; //针对A3和B题型的小题的试题类型进行定义
    switch (testType) {
        case 'ATEST':
            //以下，题干信息ID
            idArr['styleExplain'] = 'radio_styleExplain_';
            idArr['radio_style'] = 'radio_style_';
            idArr['curPageNum'] = 'radio_curPageNum_';
            idArr['totalPageNum'] = 'radio_totalPageNum_';
            idArr['testTitle'] = 'radio_testTitle_';
            idArr['testPoint'] = 'radio_testPoint_';
            //题干信息结束
            idArr['itemUiID'] = 'radio_Items_'
            idArr['itemID'] = 'radio_items_';
            idArr['itemNameID'] = 'radio_';
            idArr['itemTextID'] = 'radio_itemText_';
            idArr['resultID'] = 'radio_result';
            idArr['resultFlag'] = 'radio_result_flag';
            idArr['pageNumID'] = 'radio_pageNum';
            idArr['divBtnID'] = 'radio_moveNextDiv';
            idArr['noteCountDivID'] = 'radio_noteCount';
            idArr['myNoteID'] = 'radio_myNote';
            idArr['timeID'] = 'radio_time';
            idArr['operate'] = 'radio_operate';
            idArr['answerDiv'] = 'radio_answer';
            idArr['explainDiv'] = 'radio_explain';
            //他人笔记
            idArr['otherNoteCount'] = 'radio_otherNoteCount';
            idArr['otherNoteList'] = 'radio_otherNoteList';
            idArr['moreNote'] = 'radio_moreNote';
            idArr['getOtherNote'] = 'radio_getOtherNote';
            idArr['otherTxt'] = 'radio_otherTxt';
            idArr['refresh'] = 'radio_refresh';

            idArr['pointList'] = 'radio_pointList';
            idArr['addPoint'] = 'radio_addPoint';
            idArr['addTag'] = 'radio_addTag';
            idArr['point-list'] = 'point-list';
            idArr['tag-list'] = 'tag-list';
            idArr['result-more'] = 'result-more';
            idArr['testPhoto'] = 'testPhoto';
            break;
        case 'XTEST':
            //以下，题干信息ID
            idArr['styleExplain'] = 'checkbox_styleExplain_';
            idArr['curPageNum'] = 'checkbox_curPageNum_';
            idArr['totalPageNum'] = 'checkbox_totalPageNum_';
            idArr['testTitle'] = 'checkbox_testTitle_';
            idArr['testPoint'] = 'checkbox_testPoint_';
            //题干信息结束
            idArr['itemUiID'] = 'checkbox_Items_'
            idArr['itemID'] = 'checkbox_items_';
            idArr['itemNameID'] = 'checkbox_';
            idArr['itemTextID'] = 'checkbox_itemText_';
            idArr['resultID'] = 'checkbox_result';
            idArr['buttonID'] = 'checkbox_btn';
            idArr['pageNumID'] = 'checkbox_pageNum';
            idArr['divBtnID'] = 'checkbox_moveNextDiv';
            idArr['noteCountDivID'] = 'checkbox_noteCount';
            idArr['myNoteID'] = 'checkbox_myNote';
            idArr['timeID'] = 'checkbox_time';
            idArr['operate'] = 'checkbox_operate';
            idArr['answerDiv'] = 'checkbox_answer';
            idArr['explainDiv'] = 'checkbox_explain';
            //他人笔记
            idArr['otherNoteCount'] = 'checkbox_otherNoteCount';
            idArr['otherNoteList'] = 'checkbox_otherNoteList';
            idArr['moreNote'] = 'checkbox_moreNote';
            idArr['getOtherNote'] = 'checkbox_getOtherNote';
            idArr['otherTxt'] = 'checkbox_otherTxt';
            idArr['refresh'] = 'checkbox_refresh';
            break;
        case 'A3TEST':
            if (subTestType === '不定项' || subTestType === '多项') {
                //以下，题干信息ID
                idArr['styleExplain'] = 'A3_checkbox_styleExplain_';
                idArr['curPageNum'] = 'A3_checkbox_curPageNum_';
                idArr['totalPageNum'] = 'A3_checkbox_totalPageNum_';
                idArr['frontTitle'] = 'A3_checkbox_testTitle_'; //主标题
                idArr['testTitle'] = 'A3_checkbox_a3test_'; //小标题
                idArr['testPoint'] = 'A3_checkbox_testPoint_';
                //题干结束
                idArr['itemUiID'] = 'A3_checkbox_Items_'
                idArr['itemID'] = 'A3_checkbox_items_';
                idArr['itemNameID'] = 'A3_checkbox_';
                idArr['itemTextID'] = 'A3_checkbox_itemText_';
                idArr['resultID'] = 'A3_checkbox_result';
                idArr['buttonID'] = 'A3_checkbox_btn';
                idArr['pageNumID'] = 'A3_checkbox_pageNum';
                idArr['divBtnID'] = 'A3_checkbox_moveNextDiv';
                idArr['noteCountDivID'] = 'A3_checkbox_noteCount';
                idArr['myNoteID'] = 'A3_checkbox_myNote';
                idArr['timeID'] = 'A3_checkbox_time';
                idArr['operate'] = 'A3_checkbox_operate';
                idArr['answerDiv'] = 'A3_checkbox_answer';
                idArr['explainDiv'] = 'A3_checkbox_explain';
                //他人笔记
                idArr['otherNoteCount'] = 'A3_checkbox_otherNoteCount';
                idArr['otherNoteList'] = 'A3_checkbox_otherNoteList';
                idArr['moreNote'] = 'A3_checkbox_moreNote';
                idArr['getOtherNote'] = 'A3_checkbox_getOtherNote';
                idArr['otherTxt'] = 'A3_checkbox_otherTxt';
                idArr['refresh'] = 'A3_checkbox_refresh';
            } else if (subTestType === '单项') {
                //以下，题干信息ID
                idArr['styleExplain'] = 'A3_radio_styleExplain_';
                idArr['curPageNum'] = 'A3_radio_curPageNum_';
                idArr['totalPageNum'] = 'A3_radio_totalPageNum_';
                idArr['frontTitle'] = 'A3_radio_testTitle_'; //主标题
                idArr['testTitle'] = 'A3_radio_a3test_'; //小标题
                idArr['testPoint'] = 'A3_radio_testPoint_';
                //题干结束
                idArr['itemUiID'] = 'A3_radio_Items_'
                idArr['itemID'] = 'A3_radio_items_';
                idArr['itemNameID'] = 'A3_radio_';
                idArr['itemTextID'] = 'A3_radio_itemText_';
                idArr['resultID'] = 'A3_radio_result';
                idArr['pageNumID'] = 'A3_radio_pageNum';
                idArr['divBtnID'] = 'A3_radio_moveNextDiv';
                idArr['noteCountDivID'] = 'A3_radio_noteCount';
                idArr['myNoteID'] = 'A3_radio_myNote';
                idArr['timeID'] = 'A3_radio_time';
                idArr['operate'] = 'A3_radio_operate';
                idArr['answerDiv'] = 'A3_radio_answer';
                idArr['explainDiv'] = 'A3_radio_explain';
                //他人笔记
                idArr['otherNoteCount'] = 'A3_radio_otherNoteCount';
                idArr['otherNoteList'] = 'A3_radio_otherNoteList';
                idArr['moreNote'] = 'A3_radio_moreNote';
                idArr['getOtherNote'] = 'A3_radio_getOtherNote';
                idArr['otherTxt'] = 'A3_radio_otherTxt';
                idArr['refresh'] = 'A3_radio_refresh';
            } else {
                G_Prg.throw('程序运行错误，TestUI._setID： A3 subTestType = "' + subTestType + '",无法解析数据');
            }
            break;
        case 'BTEST':
            if (subTestType === '不定项' || subTestType === '多项') {
                //以下，题干信息ID
                idArr['styleExplain'] = 'B_checkbox_styleExplain_';
                idArr['curPageNum'] = 'B_checkbox_curPageNum_';
                idArr['totalPageNum'] = 'B_checkbox_totalPageNum_';
                idArr['testTitle'] = 'B_checkbox_testTitle_';
                idArr['testPoint'] = 'B_checkbox_testPoint_';
                //题干信息结束
                idArr['itemUiID'] = 'B_checkbox_Items_'
                idArr['itemID'] = 'B_checkbox_items_';
                idArr['itemNameID'] = 'B_checkbox_';
                idArr['itemTextID'] = 'B_checkbox_itemText_';
                idArr['resultID'] = 'B_checkbox_result';
                idArr['buttonID'] = 'B_checkbox_btn';
                idArr['pageNumID'] = 'B_checkbox_pageNum';
                idArr['divBtnID'] = 'B_checkbox_moveNextDiv';
                idArr['noteCountDivID'] = 'B_checkbox_noteCount';
                idArr['myNoteID'] = 'B_checkbox_myNote';
                idArr['timeID'] = 'B_checkbox_time';
                idArr['operate'] = 'B_checkbox_operate';
                idArr['answerDiv'] = 'B_checkbox_answer';
                idArr['explainDiv'] = 'B_checkbox_explain';
                //他人笔记
                idArr['otherNoteCount'] = 'B_checkbox_otherNoteCount';
                idArr['otherNoteList'] = 'B_checkbox_otherNoteList';
                idArr['moreNote'] = 'B_checkbox_moreNote';
                idArr['getOtherNote'] = 'B_checkbox_getOtherNote';
                idArr['otherTxt'] = 'B_checkbox_otherTxt';
                idArr['refresh'] = 'B_checkbox_refresh';
            } else if (subTestType === '单项') {
                //以下，题干信息ID
                idArr['styleExplain'] = 'B_radio_styleExplain_';
                idArr['curPageNum'] = 'B_radio_curPageNum_';
                idArr['totalPageNum'] = 'B_radio_totalPageNum_';
                idArr['testTitle'] = 'B_radio_testTitle_';
                idArr['testPoint'] = 'B_radio_testPoint_';
                //题干信息结束
                idArr['itemUiID'] = 'B_radio_Items_'
                idArr['itemID'] = 'B_radio_items_';
                idArr['itemNameID'] = 'B_radio_';
                idArr['itemTextID'] = 'B_radio_itemText_';
                idArr['resultID'] = 'B_radio_result';
                idArr['pageNumID'] = 'B_radio_pageNum';
                idArr['divBtnID'] = 'B_radio_moveNextDiv';
                idArr['noteCountDivID'] = 'B_radio_noteCount';
                idArr['myNoteID'] = 'B_radio_myNote';
                idArr['timeID'] = 'B_radio_time';
                idArr['operate'] = 'B_radio_operate';
                idArr['answerDiv'] = 'B_radio_answer';
                idArr['explainDiv'] = 'B_radio_explain';
                //他人笔记
                idArr['otherNoteCount'] = 'B_radio_otherNoteCount';
                idArr['otherNoteList'] = 'B_radio_otherNoteList';
                idArr['moreNote'] = 'B_radio_moreNote';
                idArr['getOtherNote'] = 'B_radio_getOtherNote';
                idArr['otherTxt'] = 'B_radio_otherTxt';
                idArr['refresh'] = 'B_radio_refresh';
            } else {
                G_Prg.throw('程序运行错误，TestUI._setID：B subTestType = "' + subTestType + '",无法解析数据');
            }
            break;
        case 'PDTEST':
            //以下，题干信息ID
            idArr['styleExplain'] = 'pd_styleExplain_';
            idArr['curPageNum'] = 'pd_curPageNum_';
            idArr['totalPageNum'] = 'pd_totalPageNum_';
            idArr['testTitle'] = 'pd_testTitle_';
            idArr['testPoint'] = 'pd_testPoint_';
            //题干信息结束
            idArr['itemUiID'] = 'pd_radio_Items_'
            idArr['itemID'] = 'pd_radio_items_';
            idArr['itemNameID'] = 'pd_radio_';
            idArr['itemTextID'] = 'pd_radio_itemText_';
            idArr['resultID'] = 'pd_result';
            idArr['pageNumID'] = 'pd_pageNum';
            idArr['divBtnID'] = 'pd_moveNextDiv';
            idArr['noteCountDivID'] = 'pd_noteCount';
            idArr['myNoteID'] = 'pd_myNote';
            idArr['timeID'] = 'pd_time';
            idArr['operate'] = 'pd_operate';
            idArr['answerDiv'] = 'pd_answer';
            idArr['explainDiv'] = 'pd_explain';
            //他人笔记
            idArr['otherNoteCount'] = 'pd_otherNoteCount';
            idArr['otherNoteList'] = 'pd_otherNoteList';
            idArr['moreNote'] = 'pd_moreNote';
            idArr['getOtherNote'] = 'pd_getOtherNote';
            idArr['otherTxt'] = 'pd_otherTxt';
            idArr['refresh'] = 'pd_refresh';
            break;
        case 'JDTEST':
            //以下，题干信息ID
            idArr['styleExplain'] = 'jd_styleExplain_';
            idArr['curPageNum'] = 'jd_curPageNum_';
            idArr['totalPageNum'] = 'jd_totalPageNum_';
            idArr['testTitle'] = 'jd_testTitle_';
            idArr['testPoint'] = 'jd_testPoint_';
            //题干信息结束
            idArr['textarea'] = 'jd_textarea';
            idArr['resultID'] = 'jd_result';
            idArr['answerID'] = 'jd_answer'
            idArr['buttonID'] = 'jd_btn';
            idArr['pageNumID'] = 'jd_pageNum';
            idArr['divBtnID'] = 'jd_moveNextDiv';
            idArr['noteCountDivID'] = 'jd_noteCount';
            idArr['myNoteID'] = 'jd_myNote';
            idArr['timeID'] = 'jd_time';
            idArr['operate'] = 'jd_operate';
            idArr['answerDiv'] = 'jd_answer';
            idArr['explainDiv'] = 'jd_explain';
            //他人笔记
            idArr['otherNoteCount'] = 'jd_otherNoteCount';
            idArr['otherNoteList'] = 'jd_otherNoteList';
            idArr['moreNote'] = 'jd_moreNote';
            idArr['getOtherNote'] = 'jd_getOtherNote';
            idArr['otherTxt'] = 'jd_otherTxt';
            idArr['refresh'] = 'jd_refresh';
            break;
        case 'TKTEST':
            //以下，题干信息ID
            idArr['styleExplain'] = 'tk_styleExplain_';
            idArr['curPageNum'] = 'tk_curPageNum_';
            idArr['totalPageNum'] = 'tk_totalPageNum_';
            idArr['testTitle'] = 'tk_testTitle_';
            idArr['testPoint'] = 'tk_testPoint_';
            //题干信息结束
            idArr['itemOlID'] = 'tk_Items_';
            idArr['itemTextID'] = 'tk_itemsText_';
            idArr['itemID'] = 'tk_items_';
            idArr['resultID'] = 'tk_result';
            idArr['answerID'] = 'tk_answer'
            idArr['buttonID'] = 'tk_btn';
            idArr['pageNumID'] = 'tk_pageNum';
            idArr['divBtnID'] = 'tk_moveNextDiv';
            idArr['noteCountDivID'] = 'tk_noteCount';
            idArr['myNoteID'] = 'tk_myNote';
            idArr['timeID'] = 'tk_time';
            idArr['operate'] = 'tk_operate';
            idArr['answerDiv'] = 'tk_answer';
            idArr['explainDiv'] = 'tk_explain';
            //他人笔记
            idArr['otherNoteCount'] = 'tk_otherNoteCount';
            idArr['otherNoteList'] = 'tk_otherNoteList';
            idArr['moreNote'] = 'tk_moreNote';
            idArr['getOtherNote'] = 'tk_getOtherNote';
            idArr['otherTxt'] = 'tk_otherTxt';
            idArr['refresh'] = 'tk_refresh';
            break;
        default:
            G_Prg.throw('程序运行错误，TestUI._setID：testType = "' + testType + '",无法解析数据');
    }
    return idArr;
}
